package com.view;


import java.awt.Color;
import javax.swing.*;
/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */

/**
 *
 * @author ACER
 */
public class PanelTambahAnggota extends JPanel{

    private JLabel namaPerpus; 
    private JLabel labelKodeAnggota;
    private JTextField textAnggota;
    private JLabel labelNama;
    private JTextField textnama;
    private JButton tombolSimpan;
    private JButton tombolBatal;

    public PanelTambahAnggota() {
        
        setBackground(Color.cyan);
        
        namaPerpus = new JLabel("Daftar Anggota"); 
        namaPerpus.setForeground(Color.blue);
        setSize(100, 20);
        namaPerpus.setBounds(100,10,100,40); 
        add(namaPerpus);
        
        labelKodeAnggota = new JLabel("Kode");
        labelKodeAnggota.setBounds(40, 100, 75, 30);
        textAnggota = new JTextField(10);
        textAnggota.setBounds(140, 100, 175, 25);
        this.add(labelKodeAnggota);
        this.add(textAnggota);

        labelNama = new JLabel("Nama");
        labelNama.setBounds(40, 150, 75, 30);
        textnama = new JTextField(10);
        textnama.setBounds(140, 150, 175, 25);
        add(labelNama);
        add(textnama);

        tombolSimpan = new JButton("SIMPAN");
        tombolSimpan.setBounds(40, 270, 100, 30);
        add(tombolSimpan);
        tombolBatal = new JButton("BATAL");
        tombolBatal.setBounds(200, 270, 100, 30);
        add(tombolBatal);

        setLayout(null);
        setVisible(true);
    }
}
